package visu.feign.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import visu.feign.client.UserClient;

import java.util.Map;

/**
 * Created by 程振奇 on 2017/8/3.
 */
@RestController
public class UserController {

    @Autowired
    private UserClient userClient;

    @GetMapping("add")
    public Integer add() {
        return userClient.add(10, 20);
    }

}
